/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package recommender.objects;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author Aya
 */
@Entity
public class Preference implements Serializable {
    private static final long serialVersionUID = 1L;
    
    @Id
    @Column(name="uid")
    int uid;
    @Column(name="use_threshold")
    boolean threshold;
    @Column(name="video_threshold")
    int thresholdV;
    @Column(name="interest_threshold")
    int thresholdI;
    @Column(name="n_video")
    int videoN;
    @Column(name="n_interest")
    int interestN;

    public int getUid() {
        return uid;
    }

    public boolean isThreshold() {
        return threshold;
    }

    public int getThresholdV() {
        return thresholdV;
    }

    public int getThresholdI() {
        return thresholdI;
    }

    public int getVideoN() {
        return videoN;
    }

    public int getInterestN() {
        return interestN;
    }
    
    public void setPrefs(boolean t, int v_threshold, int e_threshold, 
            int nvid, int nint){
        this.threshold = t;
        this.interestN = nint;
        this.thresholdI = e_threshold;
        this.thresholdV = v_threshold;
        this.videoN = nvid;
    }
}
